#!/bin/sh

cmd=" -D /dev/spidev1.0  -s 25000000 -p SPIR\\x05\\x00XXXXX"
kernel_ori=`cat /proc/version`
kernel1=${kernel_ori##*PREEMPT}
kernel=`echo ${kernel1} | cut -c 5-28 `
echo kernel:${kernel}

DTB_ori=`dmesg | grep DTB`
DTB=${DTB_ori##*: }
echo DTB"   ":${DTB}

cat /etc/version


FW_ori=`spidev_test ${cmd} `
FW1=${FW_ori%%__*}
FW2=${FW1##*|}
FW=`echo $FW2 |cut -c 19-35`

echo FW"    ":${FW}
